<!---

$Id: Application.cfm 86 2012-02-11 00:51:47Z chocolatejollis38@gmail.com $

Copyright (C) 2011 John Willis
 
This file is part of Prefiniti.

Prefiniti is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Prefiniti is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Prefiniti.  If not, see <http://www.gnu.org/licenses/>.

--->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Prefiniti is a social networking, business management, project management, and e-commerce service." /> 
<head>
    <!-- Configure the Prefiniti Cold Fusion application -->
    <cfapplication name="Prefiniti_1" sessionmanagement="yes">
    
    <!-- Declare session variables -->

    <cfparam name="session.username" default="">
    <cfparam name="session.userid" default="">
    <cfparam name="session.longname" default="0">
    <cfparam name="session.loggedin" default="no">
    <cfparam name="session.datasource" default="webwarecl">
    <cfparam name="session.site_maintainer" default="0">
    <cfparam name="session.email" default="">
    <cfparam name="session.browserType" default="">
    <cfparam name="session.current_site_id" default="0">
    <cfparam name="session.current_association" default="0">
    <cfparam name="session.webware_admin" default="0">
    <cfparam name="session.authentication_key" default="">
  	<cfparam name="session.pd_enhanced" default="0">
    <cfparam name="session.pd_version" default="">
    <cfparam name="session.current_object" default="">
    <cfparam name="session.basket" default="">
    <!--- next-gen integration --->
    <cfparam name="session.user" default="">
    <cfparam name="session.site" default="">
    <cfparam name="session.active_membership" default="">
    

    <div id="soundmanager-debug" style="display:none;"></div>
    
    <cfinclude template="/console.cfm">
          
    
    <cfif session.loggedin EQ "yes">
    	<cftry>
			<cfset session.framework.Ping()>
        <cfcatch type="any">
        	<!-- do nothing -->
        </cfcatch>
        </cftry>
    </cfif>
     
    <!-- Include the WebWare API files -->
    <cfinclude template="scriptIncludes.cfm">
	  
    <!-- Detect the browser type -->
    <cfinclude template="browserDetection.cfm">
    
    <!-- Load the appropriate stylesheet -->
    <cfinclude template="styleConfig.cfm">

    <!-- Configure the shortcut icon and site RSS feed -->
	<cfinclude template="configRSS.cfm">
  
</head>
 	<!-- Load the SoundManager div -->
    <cfinclude template="soundManagerDiv.cfm">

    
    <!-- Configure this Prefiniti session -->
    <cfif #session.loggedin# EQ "yes">
        <cfinclude template="webwareConfigLoad.cfm">
    </cfif>
    
    <!-- 	This script must be loaded seperately from 
    		scriptIncludes.cfm because it depends on 
            configuration being complete in webwareConfigLoad.cfm		-->       
    
    <cfset session.framework = CreateObject("component", "OpenHorizon.Framework")>
    <!---<cferror type="exception" exception="any" template="/error.cfm">--->
	<cfoutput>
	<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=#session.framework.MapsAPIKey#" type="text/javascript"></script>
	</cfoutput>
	
    <script src="/framework/UI/wz_tooltip.js" type="text/javascript"></script>



    
    